package com.yingyi.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yingyi.basic.constant.ShopState;
import com.yingyi.basic.domain.BaseDomain;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    @Excel(name = "店铺名称", orderNum = "1", width = 30)
    private String name;

    @Excel(name = "店铺电话", orderNum = "2", width = 30)
    private String tel;


    @Excel(name = "入驻时间", orderNum = "3", width = 30, exportFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerTime = new Date();

    /**
     * 1 待审核
     * 2 待激活
     * 3 正常使用
     * 4 驳回
     */
    @Excel(name = "店铺状态", orderNum = "4", width = 30)
    private Integer state = ShopState.AUDITING;


    @Excel(name = "店铺地址", orderNum = "5", width = 30)
    private String address;
    @Excel(name = "店铺logo", orderNum = "6", width = 30)
    private String logo;


    @Excel(name = "店长id", orderNum = "7", width = 30)
    private Long admin_id;
    //对应admin_id的 员工数据对象
    private Employee admin;
}
